home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Games #12
/
GEGA012.iso
/
Jogos de Azar
/
534.swf
/
scripts
/
frame_71
/
DoAction.as
Wrap
Text File
|
2006-01-17
|
695b
|
32 lines
function d_coin()
{
if(credit >= _root.coinValue && bet < max)
{
d = 1;
while(d < 154)
{
if(_root.chace.hitTest(_root["coin_t" + d]))
{
_root.attachMovie("100coin","100coin" + a,a);
_root["100coin" + a]._x = _root["coin_t" + d]._x;
_root["100coin" + a]._y = _root["coin_t" + d]._y;
bet += 100;
credit -= 100;
a++;
}
d++;
}
}
else if(credit < _root.coinValue)
{
_root.notEnough.play();
}
else if(bet eq max)
{
_root.maxMoney.play();
}
}
startDrag("chace",1);
_root.ball_m._visible = 0;
stop();